
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>HTTPS支持哪些加密算法？ - 学习卡片</title>
      <style>
        body { font-family: sans-serif; background-color: #f0f8ff; color: #333; display: flex; flex-direction: column; align-items: center; padding: 50px 20px; }
        .header h1 { font-size: 32px; }
        .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; max-width: 1200px; }
        .card-container { perspective: 1200px; cursor: pointer; height: 250px; }
        .card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.7s; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
        .card-container.flipped .card { transform: rotateY(180deg); }
        .card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; box-sizing: border-box; border-radius: 16px; background-color: #fff; padding: 24px; }
        .card-back { background-color: #f0fff4; transform: rotateY(180deg); justify-content: space-between; }
        .card-category { font-size: 14px; color: #0052d9; margin-bottom: 8px; font-weight: 500; }
        .card-question { font-size: 20px; font-weight: 500; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
        .card-answer-wrapper { flex-grow: 1; overflow-y: auto; }
        .card-answer { font-size: 15px; line-height: 1.7; }
        .card-footer { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 16px; }
        .card-source { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
      </style>
    </head>
    <body>
      <div class="header">
        <h1>HTTPS支持哪些加密算法？ - 学习卡片</h1>
      </div>
      <div class="grid-container">
        
    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">理论</div>
          <div class="card-question">HTTPS协议是如何结合不同类型的加密算法来保障通信安全的？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">理论</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">HTTPS结合了对称加密、非对称加密和哈希算法，以实现数据传输的保密性、完整性和身份验证。</div>
          </div>
          <div class="card-source">来源: 文档引言部分</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">在HTTPS通信中，对称加密和非对称加密各自扮演什么核心角色？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">对称加密算法（如AES）用于加密实际传输的数据流，因为它处理速度快。非对称加密算法（如RSA）主要用于在握手阶段安全地交换对称加密的密钥，并进行身份验证。</div>
          </div>
          <div class="card-source">来源: 1. 对称加密算法 & 2. 非对称加密算法</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">为什么现代HTTPS实践中，AES算法比3DES和RC4更受推荐？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">AES算法因其高效的加解密速度和强大的安全性而被广泛推荐。相比之下，3DES速度较慢，而RC4被发现存在安全漏洞，因此它们都已逐渐被AES取代或淘汰。</div>
          </div>
          <div class="card-source">来源: 1. 对称加密算法</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">与传统的RSA算法相比，ECC（椭圆曲线加密）算法有哪些显著优势？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">ECC算法的主要优势在于它能用更短的密钥长度提供与RSA同等级别的安全性，从而实现更高的效率和更强的安全性，尤其适用于移动和低功耗设备。</div>
          </div>
          <div class="card-source">来源: 2. 非对称加密算法</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">哈希算法（如SHA-256）在HTTPS中起到了什么关键作用？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">哈希算法用于生成数据的消息摘要（固定长度的哈希值），以确保数据的完整性。通过比较哈希值，可以验证数据在传输过程中是否被篡改。</div>
          </div>
          <div class="card-source">来源: 3. 哈希算法</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">DSA（数字签名算法）的主要用途是什么？它和用于加密的算法有何区别？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">DSA是一种非对称算法，其主要用途是生成和验证数字签名，以验证数据的完整性和来源。它不用于加密数据本身，这一点与RSA等算法不同。</div>
          </div>
          <div class="card-source">来源: 2. 非对称加密算法</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">什么是证书签名算法，它在HTTPS握手过程中承担什么职责？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">证书签名算法（例如RSA-SHA256）是用于签署和验证数字证书的算法组合。它在SSL/TLS握手过程中的主要职责是验证服务器提供的数字证书，从而确保服务器的身份真实可信。</div>
          </div>
          <div class="card-source">来源: 4. 证书签名算法</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">相较于SHA-256，SHA-384和SHA-512提供了什么，同时又带来了什么代价？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">SHA-384和SHA-512生成更长的哈希值（分别为384位和512位），因此能提供比SHA-256更高的安全性。其代价是计算开销也更大。</div>
          </div>
          <div class="card-source">来源: 3. 哈希算法</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">ECDSA-SHA256作为一种证书签名算法，在哪些场景下比RSA-SHA256更具优势？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">ECDSA-SHA256因其更高的安全性和效率，比RSA-SHA256更适合移动设备和低功耗设备等对性能和功耗敏感的场景。</div>
          </div>
          <div class="card-source">来源: 4. 证书签名算法</div>
        </div>
      </div>
    </div>

      </div>
    </body>
    </html>
